//
//  AlinkManager.h
//  JomooCloudApp
//
//  Created by chewyong on 2018/7/28.
//

#import <IMSApiClient/IMSApiClient.h>
#import <AlinkAppExpress/LKAppExpress.h>

@interface AlinkManager : NSObject<LKAppExpConnectListener,LKAppExpDownListener>{
    LKAEConnectConfig *config;
}



/**
 用水安全长连接数据返回block
 */
typedef void (^BaseDataReturnBlock)(id data);
@property(nonatomic,strong)BaseDataReturnBlock baseDataReturnBlock;
- (void)getBaseDataAlinkData:(BaseDataReturnBlock)returnBlock;

/**
 用水安全长连接数据返回block
 */
typedef void (^WaterSafetyReturnBlock)(id data);
@property(nonatomic,strong)WaterSafetyReturnBlock waterSafetyReturnBlock;
- (void)getWaterSafetyAlinkData:(WaterSafetyReturnBlock)returnBlock;

/**
 浴缸长连接数据返回block
 */
typedef void (^BathtubBlock)(id data);
@property(nonatomic,strong)BathtubBlock bathtubBlock;
- (void)getBathtubAlinkData:(BathtubBlock)block;

/**
 马桶长连接数据返回block
 */
typedef void (^ToiletBlock)(id data);
@property(nonatomic,strong)ToiletBlock toiletBlock;
- (void)getToiletAlinkData:(ToiletBlock)block;


/**
 晾衣架长连接数据返回block
 */
typedef void (^ClothesStandBlock)(id data);
@property(nonatomic,strong)ClothesStandBlock clothesStandBlock;
- (void)getClothesStandAlinkData:(ClothesStandBlock)block;

/**
 干蒸房长连接数据返回block
 */
typedef void (^DrySteamRoomBlock)(id data);
@property(nonatomic,strong)DrySteamRoomBlock drySteamRoomBlock;
- (void)getDrySteamRoomAlinkData:(DrySteamRoomBlock)block;

/**
 淋浴房长连接数据返回block
 */
typedef void (^ShowerRoomBlock)(id data);
@property(nonatomic,strong)ShowerRoomBlock showerRoomBlock;
- (void)getShowerRoomAlinkData:(ShowerRoomBlock)block;

/**
 烟雾报警器长连接数据返回block
 */
typedef void (^SmokeAlarmBlock)(id data);
@property(nonatomic,strong)SmokeAlarmBlock smokeAlarmBlock;
- (void)getSmokeAlarmAlinkData:(SmokeAlarmBlock)block;

+ (instancetype)shareManager;

+(void)attempDealloc;


@end
